"use strict";

function playcanva() {
    for (var t = document.getElementsByClassName("canvasTwo"), e = document.getElementsByClassName("canvasshow"), a = 0; a < t.length; a++) canvasApp(t[a]), canvasShowApp(e[a])
}

function canvasApp(t) {
    function e(t, e, a, n, o, i, r) {
        var s = 2 * Math.PI / o,
            c = "undefined" != i ? i * Math.PI / 180 : -Math.PI / 2;
        t.save(), t.beginPath();
        var p = e + Math.cos(c) * n,
            l = a + Math.sin(c) * n;
        t.moveTo(p, l);
        for (var h = 1; h <= o; h++) {
            var f = s * h + c,
                p = e + Math.cos(f) * n,
                l = a + Math.sin(f) * n;
            t.lineTo(p, l)
        }
        t.closePath()
    }

    function a(t, a, n, o, i, r, s) {
        e(t, a, n, o, i, r, s), t.strokeStyle = "#aaaaaa", t.stroke()
    }
    var n = t;
    console.log(n);
    var o = n.getContext("2d"),
        i = n.width,
        r = n.height,
        s = 6,
        c = 150,
        p = 0,
        l = 60,
        h = i / 2,
        f = r / 2;
    a(o, h, f, c, s, l, p)
}

function canvasShowApp(t) {
    function e(t, e, a, n, o, i, r) {
        var s = 2 * Math.PI / o,
            c = "undefined" != i ? i * Math.PI / 180 : -Math.PI / 2;
        t.save(), t.beginPath();
        var p = e + Math.cos(c) * n,
            l = a + Math.sin(c) * n;
        t.moveTo(p, l);
        for (var h = 1; h <= o; h++) {
            var f = s * h + c,
                p = e + Math.cos(f) * n,
                l = a + Math.sin(f) * n;
            t.lineTo(p, l)
        }
        t.closePath()
    }

    function a(t, a, n, o, i, r, s) {
        e(t, a, n, o, i, r, s), t.fillStyle = "#FFFEF9", t.shadowOffsetX = 0, t.shadowOffsetY = 0, t.shadowBlur = 17, t.shadowColor = "rgba(0, 0, 0, 0.5)", t.fill()
    }
    var n = t;
    console.log(n);
    var o = n.getContext("2d"),
        i = n.width,
        r = n.height,
        s = 6,
        c = 145,
        p = 0,
        l = 60,
        h = i / 2,
        f = r / 2;
    a(o, h, f, c, s, l, p)
}
var app = new Vue({
    el: "#app",
    data: {
        time1: "0".padStart(2, "0"),
        time2: "0".padStart(2, "0"),
        time3: "0".padStart(2, "0"),
        runTime: !0,
        navTime: {
            data: (new Date).getDate().toString().padStart(2, "0"),
            month: ((new Date).getMonth() + 1).toString().padStart(2, "0")
        },
        navCheck: [!1, !1, !1, !1, !0]
    },
    mounted: function () {
        this.showTime1(), this.showTime2(), this.showTime3()
    },
    methods: {
        showTime1: function () {
            var t = this,
                e = setInterval(function () {
                    if (t.time1++, t.time1 = t.time1.toString().padStart(2, "0"), 18 == parseInt(t.time1)) {
                        clearInterval(e);
                        var a = setTimeout(function () {
                            t.runTime = !1, t.page1 = !0, clearTimeout(a)
                        }, 1e3)
                    }
                }, 100)
        },
        showTime2: function () {
            var t = this,
                e = setInterval(function () {
                    t.time2++, t.time2 = t.time2.toString().padStart(2, "0"), 1 == parseInt(t.time2) && clearInterval(e)
                }, 1e3)
        },
        showTime3: function () {
            var t = this;
            console.log(this.navCheck);
            var e = setInterval(function () {
                t.time3++, t.time3 = t.time3.toString().padStart(2, "0"), 19 == parseInt(t.time3) && clearInterval(e)
            }, 80)
        },
        checkNav: function (t) {
            this.navCheck = this.navCheck.map(function (e, a) {
                return a == t && (e = !0)
            })
        }
    }
});
$(document).ready(function () {
    var t = !1;
    $(".btn-change").click(function () {
        t ? ($(".partner-box").animate({
            left: "20px",
            top: "-22px"
        }), $(".founder-box").animate({
            left: "0px",
            top: "0px"
        }), $(".partner-box").css("z-index", "999"), $(".partner-box").css("opacity", "0.5"), $(".founder-box").css("opacity", "1"), $(".founder-box").css("filter", "blur(0px)"), $(".partner-box").css("filter", "blur(5px)"), $(".founder-box p").toggle(500), $(".partner-box p").toggle(500), $(".mainfont-page2").toggle(100), $(".mainfont-page3").toggle(100)) : ($(".partner-box").animate({
            left: "0px",
            top: "0px"
        }), $(".founder-box").animate({
            left: "20px",
            top: "-22px"
        }), $(".partner-box").css("z-index", "1001"), $(".partner-box").css("opacity", "1"), $(".founder-box").css("opacity", "0.5"), $(".founder-box").css("filter", "blur(5px)"), $(".partner-box").css("filter", "blur(0px)"), $(".founder-box p").toggle(500), $(".partner-box p").toggle(500), $(".mainfont-page2").toggle(100), $(".mainfont-page3").toggle(100)), t = !t
    })
}), playcanva();